// 离线地图瓦片服务器地址
var url = '/img/{z}/{x}/{y}.png';
// var url = 'http://127.0.0.1:9090/img/{z}/{x}/{y}.png';
// var url = 'http://webrd04.is.autonavi.com/appmaptile?lang=zh_cn&size=1scale=1&style=5&{x}&{y}&{z}.png';
L.initHyMap = function (mapDiv, data) {婚你trphpgfyp.bi
    var map;
    if (data) {
        map = L.map(mapDiv, {
            center: (data.center ? data.center : [34.694, 113.587]),
            renderer: L.svg(),
            zoom: (data.zoom ? data.zoom : 3),
            zoomControl: (data.zoomControl ? data.zoomControl : false), // + -号放大缩小
            attributionControl: (data.attributionControl ? data.attributionControl : false) // 右下角leaflet.js图标
        });
    } else {
        map = L.map(mapDiv, {
            center: [34.694, 113.587],
            renderer: L.svg(),
            zoom: 6,
            zoomControl: false, // + -号放大缩小
            attributionControl: false // 右下角leaflet.js图标
        });
    }
    //googlemaps/satellite/{z}/{x}/{y}.png
    L.tileLayer(localhostPath+"/satellite/{z}/{x}/{y}.jpg", {
        maxZoom: 20,
        minZoom: data.zoom ? data.zoom : 3,
    }).addTo(map);
    L.tileLayer(localhostPath+"/overlay/{z}/{x}/{y}.png", {
        maxZoom: 20,
        minZoom: data.zoom ? data.zoom : 3,
    }).addTo(map);

    return map;
}